def output_to_string(output):
    """
    Convert the output of the model to a string.
    """
    if isinstance(output, str):
        return output
    elif isinstance(output, list):
        return ", ".join(output)
    elif isinstance(output, dict):
        return ", ".join([f"{key}: {value}" for key, value in output.items()])
    else:
        return str(output)
